/***********************************************************************
 * Module:  Mission.java
 * Author:  Chris
 * Purpose: Defines the Class Mission
 ***********************************************************************/

package Modele;

import java.util.*;

/** @pdOid fecbdf19-8507-4920-8cbc-e223c8e246a3 */
public class Mission {
   /** @pdOid 3ed3c439-ac95-4cdd-a6c2-ae176c7a4f64 */
   private int numero;
   /** @pdOid 7029e572-e42e-42f0-9a01-7f9331292d54 */
   private Date dateDepart;
   public ArrayList<Expedition> expedAffecter;
   public Livreur livreur;
   public Boolean terminer;
   
   public Mission(Date debut, int num, ArrayList<Expedition> ex){
	   this.expedAffecter= ex;
	   this.dateDepart=debut;
	   this.terminer=false;
	   this.numero=num;
   }
   /** @pdRoleInfo migr=no name=Livreur assc=association12 mult=0..1 */
  public Boolean missionTerminer(){
	  if(this.expedAffecter.size()==0){
		  this.terminer=true;
	  }
	 return terminer;
  }
public Date getDateDepart() {
	return dateDepart;
}
public void setDateDepart(Date dateDepart) {
	this.dateDepart = dateDepart;
}
public int getNumero() {
	return numero;
}
public void setNumero(int numero) {
	this.numero = numero;
}
  

}